<?php
/**
 * @author: zhouzhongyuan <435690026@qq.com>
 * @copyright 万虎网络
 * @link http://www.wanhunet.com
 */

namespace common\lang;


class Integer extends Lang
{
    public function get()
    {
        return $this->var;
    }

    public function set($var)
    {
        if (is_int($var)) {
            $this->var = $var;
            return $this;
        } else {
            throw new \Exception("var should be integer");
        }
    }

}